<h1>
        <span class="action-span1">
		<a href="javascript:void(0);">系统设置</a>---<a href="javascript:void(0);"><?php if($roomID): ?>修改房间信息<?php else: ?>添加房间<?php endif;?></a>
	</span>
	<div style="clear:both"></div>
</h1>

  <!-- start user list -->
<div class="list-div" id="listDiv">
    <form action="./index.php" method="get" >
        <input type="hidden" name="c" value="system">
  	<input type="hidden" name="a" value="roomSave">
        <input type="hidden" name="roomID" value="<?=$roomID;?>">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th width="25%">房间名称：</th>
    <td><input type="text" style="width:600px;" value="<?=$room['title'];?>" name="title"></td>
  </tr>
  <tr>
    <th width="25%">房间等级：</th>
    <td><select name="roomGrade" style="width:100px;">
        <?php foreach($grade as $k=>$v ): ?>
        <option value="<?=$k;?>" <?php if( $k == $room['roomGrade'] ): echo "selected"; endif; ?> ><?=$v?></option>
        <?php endforeach;?>
    </select></td>
  </tr>
  <tr>
    <th width="25%">增加经验：</th>
    <td><input type="text" style="width:600px;" value="<?=$room['addExp'];?>" name="addExp"></td>
  </tr>
  <tr>
    <th width="25%">小盲注：</th>
    <td><input type="text" style="width:600px;" value="<?=$room['lBlind'];?>" name="lBlind" onblur="count();" id="lBlind">0或者不填为不限</td>
  </tr>
  <tr>
    <th width="25%">大盲注：</th>
    <td><input type="text" style="width:600px;" value="<?=$room['bBlind'];?>" readonly name="bBlind" id="bBlind">0或者不填为不限</td>
  </tr>
  <tr>
    <th width="25%">最小<?=$money['pkGameMoney']?>：</th>
    <td><input type="text" style="width:600px;" value="<?=$room['lGameMoney'];?>" readonly name="lGameMoney" id="lGameMoney">0或者不填为不限</td>
  </tr>
  <tr>
    <th width="25%">最大<?=$money['pkGameMoney']?>：</th>
    <td><input type="text" style="width:600px;" value="<?=$room['BGameMoney'];?>" readonly name="BGameMoney" id="BGameMoney">0或者不填为不限</td>
  </tr>
  <tr>
    <th width="25%">单桌最多人数：</th>
    <td><select name="DeskMaxHuman" style="width:100px;">
        <option value="5" <?php if( '5' == $room['DeskMaxHuman'] ): echo "selected"; endif; ?> >5</option>
        <option value="8" <?php if( '8' == $room['DeskMaxHuman'] ): echo "selected"; endif; ?> >8</option>
    </select></td>
  </tr>
  <tr>
    <th width="25%">房间最大人数：</th>
    <td><input type="text" style="width:600px;" value="<?=$room['roomMaxNO'];?>" name="roomMaxNO">0或者不填为不限</td>
  </tr>
  <!--<tr>
    <th width="25%">房间最大单桌数：</th>
    <td><input type="text" style="width:600px;" value="<?=$room['roomMaxDesk'];?>" name="roomMaxDesk">0或者不填为不限</td>
  </tr>-->
  <tr>
  <tr>
    <th width="25%">游戏时常：</th>
    <td><select name="gameSpeed" style="width:100px;">
        <?php foreach($speed as $k=>$v ): ?>
        <option value="<?=$k;?>" <?php if( $k == $room['gameSpeed'] ): echo "selected"; endif; ?> ><?=$v?></option>
        <?php endforeach;?>
    </select></td>
  </tr>
    <th width="25%">进入房间条件：</th>
    <td>用户等级：<input type="text" style="width:550px;" value="<?=$room['condition']['grade']?$room['condition']['grade']:0;?>" name="grade">0为不限<br>
        用户钱币：<input type="text" style="width:550px;" value="<?=$room['condition']['money']?$room['condition']['money']:0;?>" name="money">0为不限<br>
        用户筹码：<input type="text" style="width:550px;" value="<?=$room['condition']['jetton']?$room['condition']['jetton']:0;?>" name="jetton">0为不限<br>
        胜利场数：<input type="text" style="width:550px;" value="<?=$room['condition']['victory']?$room['condition']['victory']:0;?>" name="victory">0为不限<br>
        充值数值：<input type="text" style="width:550px;" value="<?=$room['condition']['maxPayNO']?$room['condition']['maxPayNO']:0;?>" name="maxPayNO">0为不限<br>
    </td>
  </tr>
  <tr>
    <th colspan='2'><input type='submit' value='提交' style='width:100px;'></th>
  </tr>
  </table>
       </form>
<!-- end goods list -->

<!-- 分页 -->
</div>
  <script type="text/javascript">
           function count(){
              var inp = $('#lBlind').val();
              $('#bBlind').val( Number(inp) *<?=$roomconf['bBlind']?$roomconf['bBlind']:1;?> );
              $('#lGameMoney').val( Number(inp) *<?=$roomconf['lGameMoney']?$roomconf['lGameMoney']:1;?>  );
              $('#BGameMoney').val( Number(inp) *<?=$roomconf['BGameMoney']?$roomconf['BGameMoney']:1;?>  );
           }
  </script>